<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ImageTools.Controls">

    <Style TargetType="local:ImageExt">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:ImageExt">
                    <Image Stretch="{TemplateBinding Stretch}" x:Name="Image"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
